<?php if (count($results) > 0) { ?>
    <div id="box_js_scroll">
        <div id="scroll_content_one" class='flexcroll'>
            <div class="list_scroll_new wide-category-wrapper">
                <?php foreach ($results as $item) { ?>
                    <div class="wide-category-each-wrapper">
                        <p>  <?php echo $item['parent'] ?></p>

                        <div class="content_box_190">
                            <?php echo $item['sub'] ?>
                        </div>
                    </div>

                <?php } ?>
                <div style="clear: both">
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $(document).ready(function () {
            fleXenv.fleXcrollMain("scroll_content_one");
        });

    </script>
<?php } ?>